package artid.com.arttogo.db;

import android.content.Context;

import java.text.ParsePosition;
import java.text.SimpleDateFormat;
import java.util.Date;

public class Cache {
	// 是否保存图片到本地
	public static boolean FILE_RO = false;
	/**
	 * 艺术资讯列表
	 */
//	public static String basewebUrl = "http://119.253.34.22:28180/";  
//	public static String basewebUrl = "http://yjbservice.yspbeian.com/";  
//	public static String basewebUrl = "http://172.16.0.111/";
//	public static String baseUrl = basewebUrl+"m.php/";  

//	public final static String base = "http://172.16.0.111/";//内网测试
//	public final static String base = "http://119.253.34.22:13031/"; //外网测试
//	public final static String base = "http://tylyw.yspbeian.cn/"; //华为云测试
	public final static String base = "http://ylyw.yspbeian.com/"; //腾讯云正式

	//	public static String baseUrl = "http://172.16.0.111/m.php/";
	public static String baseUrl = base+"m.php/";//linux测试外网
	public static String basePMUrl = base+"auction.php/";//linux测试外网
	//	public static String baseUrl = "http://123.206.2.49/m.php/";//linux正式 传蒲公英
	public static String baseYanZhenUrl = base+"h5/yanzheng/yanzheng.html";


	/**
	 * 关注机构
	 */
	public static String lotFollow = basePMUrl + "Lot/lotFollow";
	
	/**
	 * 点赞
	 * 1,机构，2，拍卖会，3专场，4拍品评论,5拍品
	 * 1：设置点赞 2：取消点赞
	 */
	public static String commentSupport = basePMUrl + "Jigou/commentSupport";
	
	
	/**
	 * 拍品点赞列表
	 * 
	 */
	public static String supportList = basePMUrl + "Lot/supportList";
	

	/**
	 * 拍卖搜索详情
	 * 
	 */
	public static String searchInfo = basePMUrl + "Lot/searchInfo";
	
	
	/**
	 * 拍卖搜索
	 * 
	 */
	public static String searchList = basePMUrl + "Lot/searchList";
	
	
	/**
	 * 拍卖机构评论
	 * 
	 */
	public static String jgcommentList = basePMUrl + "Jigou/commentList";
	
	/**
	 * 拍卖机构详情
	 * 
	 */
	public static String jigouInfo = basePMUrl + "Jigou/jigouInfo";
	/**
	 * 拍卖机构
	 * 
	 */
	public static String jigouList = basePMUrl + "Jigou/jigouList";
	/**
	 * 拍品介绍 拍品信息
	 * 
	 */
	public static String lotMsg = basePMUrl + "Lot/lotMsg";
	
	/**
	 * 拍品详情
	 */
	public static String lotInfo = basePMUrl + "Lot/lotInfo";
	
	/**
	 * 注册
	 */
	public static String Registered = baseUrl + "login/Registered";
	/**
	 * 登录
	 */
	public static String login = baseUrl + "login/login";
	/**
	 * 修改密码
	 */
	public static String modifypwd = baseUrl + "member/modifypwd";
	/**
	 * 重置密码
	 */
	public static String resetPwdData = baseUrl + "login/resetPwd_data";
	/**
	 * 退出账号
	 */
	public static String logout = baseUrl + "login/logout";
	/**
	 * 注册发送验证码
	 */
	public static String sendregcode = baseUrl + "login/sendregcode";
	/**
	 * qq注册发送验证码
	 * 
	 */
	public static String sendqqcode = baseUrl + "login/sendqqcode";
	/**
	 * 找回密码发送验证码
	 */
	public static String sendresetcode = baseUrl + "login/sendresetcode";
	/**
	 * 验证验证码
	 */
	public static String code = baseUrl + "login/code";
	/**
	 * 6.1首页
	 */
	public static String index = baseUrl + "advs/index";
	/**
	 * 6.2首页艺术品
	 */
	public static String indexArtwork = baseUrl + "art/indexArtwork";
	/**
	 * 6.3首页艺术家
	 */
	public static String indexArtist = baseUrl + "artist/indexArtist";
	/**
	 * 6.3首页艺术家（除推荐外）
	 */
	public static String capitalartistList = baseUrl + "Newartist/capitalartistList";
	/**
	 * 7.1艺术藏家列表
	 */
	public static String artistList = baseUrl + "artist/artistList";
	/**
	 * 7.2艺术家详情
	 */
	public static String artistInfo = baseUrl + "Newartist/artistInfo";
	/**
	 * 7.3艺术家动态列表
	 */
	public static String artistWorks = baseUrl + "artist/artistWorks";
	/**
	 * 7.4艺术品列表（艺术品搜索）
	 */
	public static String artList = baseUrl + "art/artList";
	/**
	 * 7.5艺术品详情
	 */
	public static String artDetails = baseUrl + "art/artDetails";
	/**
	 * 7.6艺术品评论
	 */
	// public static String artComment = baseUrl+"art/artComment";
	public static String artComment = baseUrl + "Newart/commentList";
	/**
	 * 7.7艺术家动态点赞和艺术品点赞
	 */
	public static String artSupport = baseUrl + "art/artSupport";

	/**
	 * 搜索界面调用
	 */
	public static String allArtList = baseUrl + "art/selectArt";

	/**
	 * 7.11艺术品收藏
	 */
	public static String artFavorite = baseUrl + "art/artFavorite";
	/**
	 * 7.14艺术家动态点赞和艺术品点赞
	 */
	public static String photoInquiryList = baseUrl + "other/photoInquiryList";

	/**
	 * 8.1艺术资讯列表
	 */
	public static String newsList = baseUrl + "index/newsList";
	
	/**
	 * 8.2艺术资讯类别
	 */
	public static String categoryList = baseUrl + "index/categoryList";
	/**
	 * 8.3艺术资讯内容
	 */
	public static String newsContent = baseUrl+"Document/newsContent";
	
	/**
	 * 资讯评论
	 */
	public static String zxcommentList = baseUrl+"Document/commentList";
	
	
	/**
	 * 8.4拍卖列表
	 */
	public static String auctionList = baseUrl + "paimai/auctionList";
	/**
	 * 8.5拍卖内容
	 */
	public static String auctionContent = baseUrl + "paimai/auctionContent";
	/**
	 * 8.6拍品列表
	 */
	public static String lotList = baseUrl + "lot/lotList";

	/**
	 * 8.7展会列表
	 */
	public static String exhibitionList = baseUrl + "zhanhui/exhibitionList";
	/**
	 * 8.8展会内容
	 */
	public static String exhibitionContent = baseUrl
			+ "zhanhui/exhibitionContent";
	/**
	 * 8.9画廊列表
	 */
	public static String galleryList = baseUrl + "hall/galleryList";
	/**
	 * 8.10画廊内容
	 */
	public static String galleryContent = baseUrl + "hall/galleryContent";

	/**
	 * 8.11鉴证机构
	 */
	public static String institutionList = baseUrl
			+ "Organization/institutionList";

	/**
	 * 机构内容
	 */
	public static String institutionContent = baseUrl
			+ "Organization/institutionContent";

	/**
	 * 8.12藏品详情总数展示
	 */
	public static String artShownum = baseUrl + "art/artShownum";

	/**
	 * 8.13机构鉴定藏品列表
	 */
	public static String institutionArtLits = baseUrl + "Organization/institutionArtLits";

	/**
	 * 8.15扫码
	 */
	public static String rqCode = baseUrl + "other/rqCode";

	/**
	 * 9.1个人中心首页
	 */
	public static String personalCenter = baseUrl + "member/personalCenter";
	/**
	 * 9.5我的收藏列表
	 */
	public static String collectionList = baseUrl + "member/collectionList";
	/**
	 * 9.7我的关注
	 */
	public static String myFollow = baseUrl + "member/myFollow";
	/**
	 * 9.8关注动态
	 */
	public static String follow = baseUrl + "member/follow";
	/**
	 * 9.9上传头像
	 */
	public static String headInfo = baseUrl + "member/headInfo";
	/**
	 * 9.10个人资料的修改
	 */
	public static String modifyInfo = baseUrl + "member/modifyInfo";
	/**
	 * 9.11艺术家关注
	 */
	public static String artistFollow = baseUrl + "artist/artistFollow";
	/**
	 * 10.4我的评论（列表）
	 */
	public static String myComment = baseUrl + "art/myComment";
	/**
	 * 10.5回复我的评论
	 */
	public static String artReplycomment = baseUrl + "art/artReplycomment";

	public static String artAnswercomment = baseUrl + "art/artAnswercomment";
	/**
	 * 10.5回复我的评论
	 */
	public static String peopleList = baseUrl + "other/peopleList";

	/**
	 * 10.8at我的列表
	 */
	public static String commentList = baseUrl + "message/commentList";

	/**
	 * 系统消息
	 */
	public static String messageList = baseUrl + "Message/messageList";

	/**
	 * 10.13修改系统消息为已读
	 */
	public static String updateSystemread = baseUrl
			+ "message/updateSystemread";

	/**
	 * 10.1410.14第三方登录校验
	 */
	public static String qqlogin1 = baseUrl + "Login/qqlogin1";

	/**
	 * 10.15第三方登录校验
	 */
	public static String qqlogin2 = baseUrl + "Login/qqlogin2";

	/**
	 * 10.18绑定
	 */
	public static String blindqq = baseUrl + "Login/blindqq";

	/**
	 * 10.17解除绑定
	 */
	public static String clearqq = baseUrl + "Login/clearqq";

	/**
	 * 艺术家商品列表
	 */
	public static String artistgoodsList = baseUrl + "Goods/artistgoodsList";
	/**
	 * 艺术家商品类别
	 */
	public static String gcGoodslist = baseUrl + "Goods/gcGoodslist";

	/**
	 * 商品列表
	 */
	public static String goodsList = baseUrl + "Goods/goodsList";

	/**
	 * 推荐商品列表
	 */
	public static String goodsIndex = baseUrl + "Goods/goodsIndex";

	/**
	 * 商品点赞
	 */
	public static String likeGoods = baseUrl + "Goods/likeGoods";

	/**
	 * 商品详情
	 */
	public static String goodsInfo = baseUrl + "Goods/goodsInfo";

	/**
	 * 地址列表
	 */
	public static String addressList = baseUrl + "Address/addressList";

	/**
	 * 操作地址
	 */
	public static String operationAddress = baseUrl
			+ "Address/operationAddress";
	/**
	 * 删除地址
	 */
	public static String deleteAddress = baseUrl + "Address/deleteAddress";

	/**
	 * 设置默认地址
	 */
	public static String defaultAddress = baseUrl + "Address/defaultAddress";

	/**
	 * 用户下单
	 */
	public static String addOrder = baseUrl + "Order/addOrder";

	/**
	 * 修改订单
	 */
	public static String cancelOrder = baseUrl + "Order/cancelOrder";

	/**
	 * 订单详情
	 */
	public static String infoOrder = baseUrl + "Order/infoOrder";

	/**
	 * 确认订单接口
	 */
	public static String confirmOrder = baseUrl + "Order/confirmOrder";
	/**
	 * 订单列表
	 */
	public static String orderList = baseUrl + "Order/orderList";

	/**
	 * 艺术展厅
	 */
	public static String Zhanhui = baseUrl + "Zhanhui/galleryList";
	/**
	 * 查看物流
	 */
	public static String infoExpress = baseUrl + "Order/infoExpress";

	/**
	 * 展会作品列表
	 */
	public static String galleryworkList = baseUrl + "Zhanhui/galleryworkList";

	/**
	 * 
	 * 导航图，广告页
	 */
	public static String navigationList = baseUrl + "Navigation/navigationList";

	/**
	 * ibeacon列表
	 */
	public static String ibeaconList = baseUrl + "Ibeacon/ibeaconList";

	/**
	 * 扫描ibeacon
	 */
	public static String ibeaconScanning = baseUrl + "Ibeacon/ibeaconScanning";

	public static String selectArtistcategory = baseUrl
			+ "artist/selectArtistcategory";
	// public static String newsList = baseUrl + "Index/newsList";
	/**
	 * 拍卖列表
	 */
	public static String portableProductionDetail = "http://124.205.21.162:83/ProductsWebService/services/portable/portableProductionDetail";
	public static String boxJson;

	/**
	 * 艺术家信息列表和作品信息
	 */
	public static String Newartist_artistList = baseUrl
			+ "Newartist/artistList";

	/**
	 * 艺术家个人作品图的列表
	 */
	public static String newartList = baseUrl + "Newartist/newartList";

	/**
	 * 4.15藏家评论举报
	 */
	public static String report = baseUrl + "Newart/report";

	/**
	 * 根据艺术家搜索接口使用
	 */
	public static String searchartistList = baseUrl
			+ "Newartist/searchartistList";
	/**
	 * 
	 * 热词接口
	 */
	public static String selectphrase = baseUrl + "Newartist/selectphrase";

	/**
	 * 推荐艺术家的列表信息
	 */
	public static String bannerList = baseUrl + "Newartist/bannerList";

	/**
	 * 展示艺术品详细信息。（藏品详情页，机构藏品页，关注动态藏品页调用）
	 */
	public static String Newart_artDetails = baseUrl + "Newart/artDetails";
	/**
	 * 展示艺术品详细信息。（机构）
	 */
	public static String institutionartInfo = baseUrl
			+ "Organization/institutionartInfo";

	/**
	 * 点赞人列表
	 */
	public static String artSupportList = baseUrl + "Newart/artSupportList";
	/**
	 * 评论点赞
	 */
	public static String commentCommend  = baseUrl+"Newart/commentCommend";
	/**
	 * 评论点赞
	 */
	public static String zxcommentCommend  = baseUrl+"Document/commentCommend";
	/**
	 * 资讯点赞
	 */
	public static String newCommend  = baseUrl+"Document/newCommend";
	
	/**
	 * 删除评论
	 */
	public static String delcomment= baseUrl+"Newart/delcomment";
	
	/**
	 * 删除评论
	 */
	public static String zxdelcomment= baseUrl+"Document/delcomment";
	
	/**
	 * 回复评论
	 */
	public static String docAnswercomment= baseUrl+"Document/docAnswercomment";
	
	/**
	 * 资讯评论回复
	 */
	public static String docReplycomment= baseUrl+"Document/docReplycomment";
	
	
	/**
	 * 资讯种类
	 */
	public static String mychannel= baseUrl+"Newartist/mychannel";
	/**
	 * 编辑频道
	 */
	public static String editchannel= baseUrl+"Newartist/editchannel";
	
	/**
	 * 资讯评论列表
	 */
	public static String newsListnew= baseUrl+"Newartist/newsList";
	
	/**
	 * 拍卖会首页
	 */
	public static String auctionHome_bannerList= basePMUrl+"jigou/indexlist";
	
	/**
	 * 拍卖会首页-推荐拍卖会列表
	 */
	public static String recomAuctionList= basePMUrl+"Auction/recomAuctionList";
	
	/**
	 * 拍卖会列表-近期往期
	 */
	public static String auction_auctionList= basePMUrl+"Auction/auctionList";
	
	/**
	 * 拍卖会详情
	 */
	public static String auctionInfo= basePMUrl+"Auction/auctionInfo";
	
	/**
	 * 专场列表
	 */
	public static String specialList= basePMUrl+"Special/specialList";
	
	/**
	 * 艺术家列表
	 */
	public static String auction_ArtistList= basePMUrl+"Auction/artistList";
	
	/**
	 * 专场详情
	 */
	public static String specialInfo= basePMUrl+"Special/specialInfo";
	
	/**
	 * 专场详情信息
	 */
	public static String specialMsg= basePMUrl+"Special/specialMsg";
	
	/**
	 * 拍卖行评论列表（用于展示所有的评论信息）
	 */
	public static String auction_CommentList= basePMUrl+"Jigou/commentList";
	
	/**
	 * 发表评论（用于所有的评论信息）
	 */
	public static String replyComment= basePMUrl+"Jigou/ReplyComment";

	/**
	 * 回复评论（用于所有的评论信息）
	 */
	public static String Answercomment= basePMUrl+"Jigou/Answercomment";
	
	/**
	 * 删除评论（用于所有的评论信息）
	 */
	public static String delComment= basePMUrl+"Jigou/delComment";
	
	/**
	 * 拍卖会详情信息
	 */
	public static String auctionMsg= basePMUrl+"Auction/auctionMsg";
	
	/**
	 * 设置/修改/删除提醒
	 */
	public static String specialRemind= basePMUrl+"Special/specialRemind";
	
	/**
	 * 查看提醒
	 */
	public static String lookRemind= basePMUrl+"Special/lookRemind";
	
	/**
	 * 拍卖行-拍品列表
	 */
	public static String auction_LotList= basePMUrl+"Lot/lotList";
	
	/**
	 * 拍卖行-举报
	 */
	public static String userInform= basePMUrl+"Jigou/userInform";

	/**
	 * 拍卖行-收藏
	 */
	public static String addCollection= basePMUrl+"Jigou/addCollection";

	/**
	 * 资讯-收藏
	 */
	public static String documentCollection= basePMUrl+"Jigou/documentCollection";

	/**
	 * 拍卖行-发表/修改/删除笔记
	 */
	public static String LotAddNote= basePMUrl+"Lot/addNote";
	
	/**
	 * 个人中心收藏列表
	 */
	public static String newCollectionList= basePMUrl+"Jigou/collectionList";
	
	/**
	 * 艺来艺往首页
	 */
	public static String HOME_URL= baseUrl+"advs/index";
	
	/**
	 * 我的笔记
	 */
	public static String noteList= basePMUrl+"Lot/noteList";
	/**
	 * 机构图录列表
	 */
	public static String jigoucatalogList = basePMUrl + "Jigou/jigoucatalogList";
	/**
	 * 拍卖会图录列表
	 */
	public static String auclogList = basePMUrl + "Jigou/auclogList";
	/**
	 * 专场图录列表
	 */
	public static String spLogList = basePMUrl + "Jigou/spLogList";
	/**
	 * 名人艺术家列表
	 */
	public static String celebrityartistList = basePMUrl + "Celebrityartist/celebrityartistList";
	/**
	 * 名人艺术家详情
	 */
	public static String celebrityartistInfo = basePMUrl + "Celebrityartist/celebrityartistInfo";
	/**
	 * 单个专场图录列表
	 */
	public static String spLogInfo = basePMUrl + "Jigou/spLogInfo";
	/**
	 * 支付接口
	 */
	public static String moneyPay = baseUrl + "Order/moneyPay";
//	/**
//	 * 5.1艺术资讯列表
//	 */
//	public static String mychannel = baseUrl + "Newartist/mychannel";

	/**
	 * 根据手机的分辨率从 dp 的单位 转成为 px(像素)
	 */
	public static int dip2px(Context context, float dpValue) {
		final float scale = context.getResources().getDisplayMetrics().density;
		;
		return (int) (dpValue * scale + 0.5f);
	}

	/**
	 * 获取现在时间
	 * 
	 * @return 返回时间类型 yyyy-MM-dd HH:mm:ss
	 */
	public static Date getNowDate() {
		Date currentTime = new Date();
		// SimpleDateFormat formatter = new
		// SimpleDateFormat("yyyy-MM-dd HH:mm");
		SimpleDateFormat formatter = new SimpleDateFormat("HH:mm:ss");
		String dateString = formatter.format(currentTime);
		ParsePosition pos = new ParsePosition(8);
		Date currentTime_2 = formatter.parse(dateString, pos);
		return currentTime_2;
	}

	/**
	 * 获取现在时间
	 * 
	 * @return返回字符串格式 yyyy-MM-dd HH:mm:ss
	 */
	public static String getStringDate() {
		Date currentTime = new Date();
		SimpleDateFormat formatter = new SimpleDateFormat("HHmmss");
		String dateString = formatter.format(currentTime);
		return dateString;
	}
}
